package com.cxy.instarsystem.service;

import com.cxy.instarsystem.dao.VCategoryRepository;
import com.cxy.instarsystem.po.VCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class VCategoryServiceImpl implements VCategoryService {

    @Autowired
    private VCategoryRepository vCategoryRepository;

    @Override
    public List<VCategory> listCategory() {

        return vCategoryRepository.findAll();
    }
}
